﻿using JamesZhao.Engine.Graphics.Effects;
using SlimDX.Direct3D11;
using SlimMath;

namespace JamesZhao.Engine.Graphics.Visuals
{
    public class MeshDrawable : Drawable
    {
        public GeometryBuffer GeometryBuffer { get; set; }

        public override void RenderWithGpuProgram(GraphicsDevice device, GpuProgram gpuProgram)
        {
            gpuProgram.ApplyInputLayout(device);
            GeometryBuffer.ApplyBuffersAndTopology(device);
            RenderPasses(device, gpuProgram, GeometryBuffer);
        }


    }
}